<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#2196F3',
                        'primary-light': '#64B5F6',
                        'primary-dark': '#1976D2'
                    }
                }
            }
        }
    </script>
    <style>
        body {
            background: #F5F7FA;
        }
        .profile-bg {
            background: linear-gradient(135deg, #2196F3, #1E88E5);
        }
    </style>
</head>
<body>
    <div class="w-[375px] mx-auto min-h-screen bg-white relative">
        <!-- 用户信息区域 -->
        <div class="profile-bg h-[180px] relative px-4 pt-12">
            <div class="flex items-center">
                <img src="avatar.jpg" class="w-[64px] h-[64px] rounded-full border-2 border-white">
                <div class="ml-4 text-white">
                    <h2 class="text-xl font-medium">小童同学</h2>
                    <p class="text-sm mt-1 opacity-90">138****6789</p>
                </div>
            </div>
            <!-- 数据概览 -->
            <div class="absolute -bottom-[72px] left-4 right-4">
                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="grid grid-cols-3 gap-4">
                        <div class="text-center">
                            <div class="text-xl font-medium text-primary">2,360</div>
                            <div class="text-sm text-gray-500 mt-1">我的积分</div>
                        </div>
                        <div class="text-center">
                            <div class="text-xl font-medium text-primary">45</div>
                            <div class="text-sm text-gray-500 mt-1">学习天数</div>
                        </div>
                        <div class="text-center">
                            <div class="text-xl font-medium text-primary">328</div>
                            <div class="text-sm text-gray-500 mt-1">掌握汉字</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 主内容区 -->
        <main class="mt-[88px] px-4 pb-[80px]">
            <!-- 分享奖励卡片 -->
            <div class="bg-gradient-to-r from-primary to-primary-dark rounded-xl p-4 text-white mb-6">
                <div class="flex justify-between items-center mb-3">
                    <div class="flex items-center">
                        <i class="fas fa-gift text-xl"></i>
                        <span class="ml-2 font-medium">分享得奖励</span>
                    </div>
                    <button class="px-3 py-1 bg-white/20 rounded-full text-sm">
                        去分享
                    </button>
                </div>
                <p class="text-sm opacity-90">
                    分享给好友，双方都可获得7天会员奖励（每月限10次）
                </p>
            </div>

            <!-- 会员套餐 -->
            <div class="bg-white rounded-xl shadow-sm mb-6">
                <h3 class="text-base font-medium p-4 border-b">会员套餐</h3>
                <div class="p-4 space-y-4">
                    <!-- 年度会员 -->
                    <div class="border-2 border-primary rounded-xl p-3 relative">
                        <span class="absolute -top-2 right-2 bg-primary text-white text-xs px-2 py-0.5 rounded-full">推荐</span>
                        <div class="flex justify-between items-center">
                            <div>
                                <h4 class="font-medium">年度会员</h4>
                                <p class="text-sm text-gray-500 mt-1">365天无限制学习</p>
                            </div>
                            <button class="h-9 px-4 bg-primary text-white text-sm rounded-lg">¥299</button>
                        </div>
                    </div>
                    <!-- 月度会员 -->
                    <div class="border rounded-xl p-3">
                        <div class="flex justify-between items-center">
                            <div>
                                <h4 class="font-medium">月度会员</h4>
                                <p class="text-sm text-gray-500 mt-1">30天无限制学习</p>
                            </div>
                            <button class="h-9 px-4 bg-gray-100 text-gray-600 text-sm rounded-lg">¥29.9</button>
                        </div>
                    </div>
                    <!-- 体验会员 -->
                    <div class="border rounded-xl p-3">
                        <div class="flex justify-between items-center">
                            <div>
                                <h4 class="font-medium">体验会员</h4>
                                <p class="text-sm text-gray-500 mt-1">7天无限制学习</p>
                            </div>
                            <button class="h-9 px-4 bg-gray-100 text-gray-600 text-sm rounded-lg">¥9.9</button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 功能列表 -->
            <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                <a href="#" class="flex items-center justify-between p-4 hover:bg-gray-50">
                    <div class="flex items-center">
                        <i class="fas fa-question-circle text-primary w-5"></i>
                        <span class="ml-3">帮助与反馈</span>
                    </div>
                    <i class="fas fa-chevron-right text-gray-300"></i>
                </a>
            </div>
        </main>

        <!-- 底部导航栏 -->
        <nav class="fixed bottom-0 w-[375px] bg-white border-t border-gray-100">
            <div class="grid grid-cols-5 h-[56px]">
                <a href="generate.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-plus-circle text-gray-400"></i>
                    <span class="text-xs mt-1 text-gray-400">生成</span>
                </a>
                <a href="study.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-book text-gray-400"></i>
                    <span class="text-xs mt-1 text-gray-400">学习</span>
                </a>
                <a href="history.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-history text-gray-400"></i>
                    <span class="text-xs mt-1 text-gray-400">历史</span>
                </a>
                <a href="rewards.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-gift text-gray-400"></i>
                    <span class="text-xs mt-1 text-gray-400">奖励</span>
                </a>
                <a href="profile.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-user text-primary"></i>
                    <span class="text-xs mt-1 text-primary">我的</span>
                </a>
            </div>
            <div class="h-[env(safe-area-inset-bottom)]"></div>
        </nav>
    </div>
</body>
</html>